﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using FinWeb3.Models.Helpers;

namespace FinWeb3.Models.ModelView
{
    public class BasicModelView
    {
        public DateTime FromDate { get; set; }
        public DateTime ToDate { get; set; }
        public string Message { get; set; }

        public BasicModelView(string fromDate, string toDate)
        {
            FromDate = fromDate.ToDateTime();
            ToDate = toDate.ToDateTime();
        }

        public BasicModelView()
        {
        }

        public string GetRange()
        {
            return FromDate.ToString("dd/MM/yyyy") + " - " + ToDate.ToString("dd/MM/yyyy");
        }
    }
}
